<?php
# this is file with all interface functions necessary to create register page

# this is function that will return final data for register page
function i_register(){
	$html = '';
	
	
		
	$html .= '<div class="wrapper">';
	
		$html .= '<div class="header">';
			$html .= 	'<p ><img src="images/without_search_field.jpg"   /></p> ';
		$html .= '</div>';
	
	
#	$html .= 	'<h1 >Meet n\' Go!</h1>';
#	$html .= 	'<div class ="mainPage" >';
	
#	$html .= 	'</div>';
		$html .= 	'<div class="mainPage" >';
			$html .= 		'<h2 style="margin-left:400px;"> Registration</h2>';
			$html .= 		'<form id="form1" name="form1"  action="php/core/Registration/p_register.php" method="post">';
			$html .= 			'<div align="center">';
	
	# display error messages
			if(has_errors()){
				$err = i_get_msg_err();
				$ci = count($err);
				for($i=0; $i<$ci; $i++){
					$html .= '<div id="error_msg">' . $err[$i] . '</div>';
				}
				$html .= '<br/>';
			}
	
	$html .=				'<table style="margin-left:310px;">'.
								'<tr>'.
									'<td>Full name</td>'.
									'<td><input type="text" name="name" /></td>'.
								'</tr>'.
								'<tr>'.
									'<td>E-mail</td>'.
									'<td><input type="text" name="email" /></td>'.
								'</tr>'.
								'<tr>'.
									'<td>Password</td>'.
									'<td><input type="password" name="password" id="password_field" /></td>'.
								'</tr>'.
							'</table>';
	
	$html .= '<p>';
	
	$html .= 				'<input type="submit" name="ok" id="ok" value="OK"  style="margin-left:310px; width:70px;"  />';
	$html .= 				'&nbsp;&nbsp;<a href="index.php?id=' . I_MAIN_PAGE . '">Back</a>'; // link to return to login page
	$html .= 			'</div>';
	$html .= 		'</form>';
	$html .= 	'</div>';
	$html .= '</p>';
	
	$html .= '<div class="clear">&nbsp;</div>';
	$html .= '</div>';
	
	return $html;
} // i_register()
?>






	 